package com.etc;

import org.springframework.stereotype.Component;

@Component("dog")
public class Dog extends Pet{
    public void wangwang() {
        System.out.println(getName() + "汪汪");
    }

    @Override
    public void weishi() {
        System.out.println("这是狗" + getName() + "被喂食");
    }



}
